const rules = {
    name: [
      { required: true, message: '请填写姓名', trigger: 'blur' }
    ],
    gender: [
      { required: true, message: '请选择性别', trigger: 'change' }
    ],
    is_marry: [
      { required: true, message: '请选择婚姻状况', trigger: 'change' }
    ],
    is_fertile: [
      { required: true, message: '请选择生育情况', trigger: 'change' }
    ],
    country: [
      { required: true, message: '请选择国家和地区', trigger: 'change' }
    ],
    nation: [
      { required: true, message: '请选择民族', trigger: 'change' }
    ],
    birthday: [
      { required: true, message: '请选择生日', trigger: 'change' }
    ],
    native_city: [
      { required: true, message: '请填写户籍城市', trigger: 'blur' }
    ],
    native_address: [
      { required: true, message: '请填写户籍地址', trigger: 'blur' }
    ],
    telphone: [
      { required: true, message: '请填写手机号码', trigger: 'blur' },
      { type: 'integer', message: '请填写正确的手机号码', trigger: 'blur' }   
    ],
    qq: [
      { required: true, message: '请填写QQ号码', trigger: 'blur' }
    ],
    highest_education: [
      { required: true, message: '请填写最高学历', trigger: 'blur' }
    ],
    extension_number: [
      { required: true, message: '请填写分机号', trigger: 'blur' }
    ],
    wechat: [
      { required: true, message: '请填写微信号', trigger: 'blur' }
    ],
  
    emergency_mobile: [
      { required: true, message: '请填写紧急联系人电话', trigger: 'blur' },
      { type: 'integer', message: '请填写正确的手机号码', trigger: 'blur' }   
    ],
    bankcard_no: [
      { required: true, message: '请填写工资卡卡号', trigger: 'blur' },
      { type: 'integer', message: '请填写正确的银行卡号码', trigger: 'blur' }   
    ],
    bankcard_city: [
      { required: true, message: '请填写开户行城市', trigger: 'blur' }
    ], 
    social_account: [
      { required: true, message: '请填写社保账号', trigger: 'blur' }
    ],
  
    accumulation_fund: [
      { required: true, message: '请填写公积金账号', trigger: 'blur' }
    ],
    emergency_person: [
      { required: true, message: '请填写紧急联系人姓名', trigger: 'blur' },
      { type: 'string', message: '请填写正确的联系人姓名', trigger: 'blur' }   
    ], 
    graduation_time: [
      { required: true, message: '请选择毕业时间', trigger: 'change' }
    ],
    major: [
      { required: true, message: '请填写毕业专业', trigger: 'blur' }
    ],
    residential_address: [
      { required: true, message: '请填写现居住地', trigger: 'blur' }
    ],
    school: [
      { required: true, message: '请填写毕业院校', trigger: 'blur' }
    ],
  
    politic_countenance: [
      { required: true, message: '请填写政治面貌', trigger: 'change' }
    ],
    native_place: [
      { required: true, message: '请填写籍贯信息', trigger: 'blur' }
    ],
    id_no: [
      { required: true, message: '请填写证件号码', trigger: 'blur' }
    ],
    mobile: [
      { required: true, message: '请填写手机号', trigger: 'blur' },
      { type: 'string', message: '请填写正确的手机号码', trigger: 'blur' }  
    ],
    email: [
      { required: true, message: '请填写', trigger: 'blur' },
      { type: 'email', message: '请填写正确的邮箱号码', trigger: 'blur' }  
    ],
    id_type: [
      { required: true, message: '请选择证件类型', trigger: 'change' }
    ],
    learning_modality: [
      { required: true, message: '请选择学习形式', trigger: 'change' }
    ],
    work_nature: [
      { required: true, message: '请选择工作性质', trigger: 'change' }
    ],
    work_no: [
      { required: true, message: '请填写工号', trigger: 'blur' },
      { type: 'integer', message: '请填写正确的工号', trigger: 'blur' }  
    ],
  
    work_place: [
      { required: true, message: '请填写工作地址', trigger: 'blur' }
    ],
    attendance_no: [
      { required: true, message: '请填写考勤编号', trigger: 'blur' }
    ],
    work_city: [
      { required: true, message: '请选择工作城市', trigger: 'change',type:'array' }
    ],
    employee_status: [
      { required: true, message: '请选择员工状态', trigger: 'change' }
    ],
  
    post_level: [
      { required: true, message: '请填写职级', trigger: 'blur' }
    ],
    position: [
      { required: true, message: '请填写岗位', trigger: 'blur' }
    ],
    post: [
      { required: true, message: '请填写职务', trigger: 'blur' }
    ],
    entry_time: [
      { required: true, message: '请选择入职时间', trigger: 'change' }
    ],
    probation_period: [
      { required: true, message: '请选择试用期', trigger: 'change' }
    ],
    company: [
      { required: true, message: '请填写合同公司', trigger: 'blur' }
    ],
  }



export default rules;